<?php
/**
 * Set the routes. Each route must have a minimum of a name, a URI and a set of
 * defaults for the URI.
 */
Route::set('api', 'whitebox/apps(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'api',
        'controller' => 'whitebox',
	));

Route::set('sosoapi', 'soso/packages(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'packages',
        'controller' => 'soso',
	));

Route::set('api_feitu', 'feitu/packages(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'packages',
        'controller' => 'feitu',
	));

Route::set('api_shunwang', 'shunwang/packages(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'packages',
        'controller' => 'shunwang',
	));

Route::set('api_axthon', 'maxthon(/<action>(/<param1>(/<param2>)))')
	->defaults(array(
        'action'     => 'featurelist',
        'controller' => 'maxthon',
        #'directory'  => 'api',
	));




Route::set('api_download', 'downloads(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'counts',
        'controller' => 'downloads',
        'directory'  => 'api',
	));

Route::set('api_downloadproxy', 'down(/<action>(/<param1>))')
	->defaults(array(
        'controller' => 'downloads',
        'directory'  => 'api',
	));


Route::set('api_support', 'support/dev/downloads(/<param1>(/<param2>))')
	->defaults(array(
        'action'     => 'dev_downloads',
        'controller' => 'support',
        'directory'  => 'api',
	));

Route::set('error', 'error/<action>/<message>', array('action' => '([0-9]+)', 'message' => '(.+)'))
	->defaults(array(
		'controller' => 'error',
	));

Route::set('api_iapppay', 'iapppay(/<param1>)')
	->defaults(array(
        'action'     => 'index',
        'controller' => 'iapppay',
        'directory'  => 'api',
	));
	
Route::set('api_jinshan', 'jinshan(/<param1>)')
	->defaults(array(
        'action'     => 'index',
        'controller' => 'jinshan',
        'directory'  => 'api',
	));